package com.aabte.commons.errorcode;

import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.context.support.ResourceBundleMessageSource;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/4/30
 */
public class UnifiedMessageSource extends ResourceBundleMessageSource {

  public String getMessage(String code, Object[] args) {
    return getMessage(code, args, LocaleContextHolder.getLocale());
  }

}
